package com.gxp.pojo;

import java.io.Serializable;
import java.util.List;

public class Role implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 5840405538549185409L;

	public static String INTERNAL_ROLE_TYPE = "0";
	
	public static String EXTERNAL_ROLE_TYPE = "1";
	
	private List<Authority> permissionList;	
	
	private Integer roleId;

    private String roleName;
    
    private String roleType;  
    
    private String authIdStr;
    
    private int[] selectedAuthArr = new int[]{};


	public int[] getSelectedAuthArr() {
		return selectedAuthArr;
	}

	public void setSelectedAuthArr(int[] selectedAuthArr) {
		this.selectedAuthArr = selectedAuthArr;
	}

	public String getAuthIdStr() {
		return authIdStr;
	}

	public void setAuthIdStr(String authIdStr) {
		this.authIdStr = authIdStr;
	}

	public String getRoleType() {
		return roleType;
	}

	public void setRoleType(String roleType) {
		this.roleType = roleType;
	}

	public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName == null ? null : roleName.trim();
    }
    
    public List<Authority> getPermissionList() {
		return permissionList;
	}
	public void setPermissionList(List<Authority> permissionList) {
		this.permissionList = permissionList;
	}
	
	
}
